package pack3;

public class People {
    public int code;
    public String name;
    public char sex;

    public People(int code, String name, char sex) {
        setCode(code);
        setName(name);
        setSex(sex);
    }

    public int getCode() {
        return code;
    }

    public String getName() {
        return name;
    }

    public char getSex() {
        return sex;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setSex(char sex) {
        this.sex = sex;
    }
}